#include <stdio.h>
int main()
{
	double a,b,year;
	int H=24;
	scanf("%f",&a);
	year = 24*365;
	b = H/year;
	printf("%f",b);
	return 0;
}
